package com.itheima.test;

import java.util.Random;

/**
 * @Author 王加鑫
 * @Date 2021/4/19 17:02
 * @Version 1.0
 * 初始Random
 */
public class RandomTest01 {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i = 0; i <10 ; i++) {
            int num = random.nextInt(31)+20;

            System.out.println(num);
        }

    }
}
